package yun.web.springmvc;

import yun.web.enjoy.template.Engine;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MvcDefaultConfig {
    @Bean("default-engine")
    public Engine engine() {
        return Engine.use("default-engine") == null ? Engine.create("default-engine") : Engine.use("default-engine");
    }
}
